package com.mit.wx.wx;

import com.mit.wx.util.HttpUtil;

import java.io.IOException;

public class WxMenuApi {
    private static final String CREATE_MENU_API = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=%s";

    public static String setMenu(String accessTolen, String json) throws IOException {
        String apiUrl = String.format(CREATE_MENU_API, accessTolen);
        return HttpUtil.postWithStringBody(apiUrl, json);
    }
}
